# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-gambatte
pkgver=0_git20200207
pkgrel=0
_commit="132f36e990dfc6effdafa6cf261373432464f9bf"
pkgdesc="libretro implementation of libgambatte"
url="https://github.com/libretro/gambatte-libretro"
arch="all"
license="GPL-2.0-only"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/gambatte-libretro/archive/$_commit.tar.gz"
builddir="$srcdir/gambatte-libretro-$_commit"
options="!check" # No tests

build() {
	make -f Makefile.libretro
}

package() {
	install -Dm644 gambatte_libretro.so "$pkgdir"/usr/lib/libretro/gambatte_libretro.so
}

sha512sums="90305ffe50a3ac3dd50eab540b76d80bbc73f9fccc5d48d11cc48aadf5d99c4a5c11302a093ee83441311bd0183e024852659b91412e103be27ee82851a11bae  libretro-gambatte-132f36e990dfc6effdafa6cf261373432464f9bf.tar.gz"
